/*******************************************OVERVIEW****************************************************************
 
"Reassessing the Link between Revolutionary Threats and Democratization" 
 
Replication File
 
Table B1
 
  
********************************************************************************************************************/

clear
set more off
#delimit ;


/*Set Directory -- You will need to adjust this line of code accordingly */; 

cd "/Users/YourFiles/Replication/";

/*Create Log File*/;

log using "Table B1", replace text;


/*Load Data File - You will need to download AF's replicaton files*/;

/* https://www.econometricsociety.org/publications/econometrica/browse/2015/03/01/democratization-under-threat-revolution-evidence-great-reform */;

/*Please use the data file data_const.dta*/;


use "/Users/YourFiles/11484_Data_and_Programs/data/data_const.dta";

global baseline "share1826 share1826_2 reform_1830 county university narrow rottenindex h_index1831 primary secondary tetitary population1831 density1831 economictrend1 economictrend2";

ivreg2 share1831 (constriots10 = road_dissevenoaks_const_km) if agg_type1==1, first robust; 

ivreg2 share1831 (constriots10 = road_dissevenoaks_const_km) $baseline if agg_type1==1, first robust; 

ivreg2 share1831 (constriots10 = road_dissevenoaks_const_km) if agg_type2==1, first robust; 

ivreg2 share1831 (constriots10 = road_dissevenoaks_const_km) $baseline if agg_type2==1, first robust;  

ivreg2 share1831 (constriots10 = road_dissevenoaks_const_km) if agg_type1==0 & agg_type2==0, first robust; 

ivreg2 share1831 (constriots10 = road_dissevenoaks_const_km) $baseline if agg_type1==0 & agg_type2==0, first robust;   
 
 
log c;
 
 
